package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.StationDao;
import mx.entity.Station;
import mx.service.StationService;

@Service("stationService")
public class StationServiceImpl implements StationService {
	@Resource
	private StationDao stationDao;

	public List<Station> list(Map<String, Object> map) {

		return stationDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {

		return stationDao.getTotal(map);
	}

	public Integer update(Station station) {

		return stationDao.update(station);
	}

	public Station find(Station station) {

		return stationDao.find(station);
	}

	public Integer delete(Integer id) {

		return stationDao.delete(id);
	}

	public Integer add(Station station) {

		return stationDao.add(station);
	}

	public Station findById(Integer id) {
		return stationDao.findById(id);
	}

}
